<h1><%=t ".title"%></h1>

<% form_for resource_name, resource, :url => registration_path(resource_name) do |f| -%>
  <%= f.error_messages %>
  <p><%= f.label t('activerecord.attributes.user.email') %></p>
  <p><%= f.text_field :email %></p>

  <p><%= f.label t('activerecord.attributes.user.password') %></p>
  <p><%= f.password_field :password %></p>

  <p><%= f.label t('activerecord.attributes.user.password_confirm') %></p>
  <p><%= f.password_field :password_confirmation %></p>

  <p><%= f.label t('activerecord.attributes.user.roles') %> </p>
  <p>
  <% for role in User::ROLES %>
   <%= check_box_tag "user[roles][]", role, @user.roles.include?(role) %>
   <%= h role.humanize %>
  <% end %>
  <%= hidden_field_tag "user[roles][]"%>
  </p>
  <p><%= f.submit t('devise.registrations.link') %></p>
<% end -%>

<%= render :partial => "shared/devise_links" %>
